﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace com.yuehooo.enums {
	/// <summary>
	/// 资金变动类型
	/// </summary>
	public enum BalanceChangeType {
		/// <summary>
		/// 收入
		/// </summary>
		InCome = 0x01,

		/// <summary>
		/// 1 - 邀请码添加
		/// </summary>
		InvoteCode = 1,

		/// <summary>
		/// 支出
		/// </summary>
		Expenditure = 0x02,

		/// <summary>
		/// 2 - 使用（创建订单）
		/// </summary>
		CreateOrder = 2,

		/// <summary>
		/// 5 - 用户取消订单（退款）
		/// </summary>
		OrderCancel = 0x04 | InCome,

		/// <summary>
		/// 9 - 订单确认
		/// </summary>
		OrderDone = 0x08 | InCome,

		/// <summary>
		/// 宝贝收藏数每N个增加钉子数
		/// </summary>
		LikeGoods = 0x10 | InCome,

		/// <summary>
		/// 系统赠送
		/// </summary>
		Gift = 0x20 | InCome,

		/// <summary>
		/// 系统赠送（扣减）
		/// </summary>
		GiftMinus = 0x20 | Expenditure,

		/// <summary>
		/// 65 - 充值
		/// </summary>
		Buy = 0x40 | InCome,

		/// <summary>
		/// 完善个人资料赠送
		/// </summary>
		GiftForCompleteProfile = 0x100 | 0x20 | InCome,
		/// <summary>
		/// 赠送狐币（受赠）
		/// </summary>
		GiftFromFriend = 0x200 | 0x20 | InCome,
		/// <summary>
		/// 赠送狐币（扣减）
		/// </summary>
		GiftToFriend = 0x200 | 0x20 | Expenditure,

		商家扫码收款 = 0x400 | InCome,
		商家退款 = 0x400 | Expenditure,

		用户接收退款 = 0x800 | InCome,
		用户扫码付款 = 0x800 | Expenditure,

		/// <summary>
		/// 商家收款
		/// </summary>
		Receivables = 0x1000 | InCome,
		/// <summary>
		/// 订单退款
		/// </summary>
		RefundMallOrder = 0x1000 | Expenditure,

		/// <summary>
		/// 用户购物商家物品支付
		/// </summary>
		PayMallOrder = 0x2000 | Expenditure,

		/// <summary>
		/// VIP升级
		/// </summary>
		VIP升级 = 0x4000 | InCome,

		/// <summary>
		/// VIP充值并升级
		/// </summary>
		VIP充值并升级 = 0x4040 | InCome,
	}
}
